//
//  KSOnlyTitleTableViewCell.swift
//  Supermarket
//
//  Created by Black_Crystal on 2017/9/21.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

class KSOnlyTitleTableViewCell: UITableViewCell {

    var titleLabel = UILabel()
    var lineView = UIView()
    var cacheLabel = UILabel()
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.titleLabel.font = UIFont.systemFont(ofSize: 14)
        self.titleLabel.textColor = KSColor.kColor_3
        self.contentView.addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalTo(15)
        }
        
        cacheLabel.font = UIFont.systemFont(ofSize: 14)
        cacheLabel.textColor = KSColor.kColor_9
        self.contentView.addSubview(cacheLabel)
        cacheLabel.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalTo(-20)
        }
        
        lineView.backgroundColor = KSColor.kColor_line
        self.contentView.addSubview(lineView)
        lineView.snp.makeConstraints { (make) in
            make.left.equalTo(self.contentView).offset(0)
            make.height.equalTo(0.5)
            make.bottom.equalTo(self.contentView.snp.bottom).offset(0)
            make.right.equalTo(self.contentView).offset(200)
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
